package com.shop.service.impl;

import com.shop.entity.MessageBoard;
import com.shop.entity.MessageBoardHistory;
import com.shop.mapper.MessageBoardMapper;
import com.shop.service.MessageBoardService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2023-03-06
 */
@Service
public class MessageBoardServiceImpl extends ServiceImpl<MessageBoardMapper, MessageBoard> implements MessageBoardService {
@Autowired
MessageBoardMapper messageBoardMapper;
    @Override
    public List<MessageBoardHistory> getByUserName(String userName) {
        return messageBoardMapper.getByUserName(userName);
    }
}
